/**
 * @name        misc.ts
 * @author      shenyc
 * @date        2023-05-06 - ?
 * @copyright   Copy right (c) shenyc (shenyczz@163.com).
 *              All rights reserved.
 *
 ******************************************************************************/
// {{@@@}}
"use strict";
// ----------------------------------------------------------------------------
/**
 * 返回带前缀的字符串
 * @param {string} [val]
 * @returns "sfx-prefix-val"
 */
export function getPrefixString(val: string) {
    return `sfx-prefix-${val}`;
}

/**
 *
 * @param {string} [str]
 * @returns
 */
export function lowerFirstChart(str: string) {
    return str.replace(/( |^)[A-Z]/g, (L) => L.toLowerCase());
}

// test
export function foo(x: any, callbak?: Callback) {
    callbak && callbak;
    return x;
}

export class ABC {
    public foo(x: any, callbak?: Callback) {
        callbak && callbak;
        return x;
    }
    public static hello() {
        console.log("Hello, nice to meet you!");
    }
}
// ----------------------------------------------------------------------------
// {{@@@}}
